import request from '@/utils/request'

// 获取夹胶线正在取片的玻璃
export function getUseDoublingRwdInfo() {
    return request({
        url: '/behindCage/getUseDoublingRwdInfo',
        method: 'get',
    })
}

// 添加流程卡道夹胶线，和修改理片笼参数属性
export function editBehindCageParam(data) {
    return request({
        url: '/behindCage/editBehindCageParam',
        method: 'post',
        data
    })
}


//添加流程卡到中空线
export function addRwdToInsulatingGlassProcessingLine(data) {
    return request({
        url: '/behindCage/addRwdToInsulatingGlassProcessingLine',
        method: 'post',
        data
    })
}
// 查询未被选中做夹胶的流程卡
export function getDoublingRwdInfo() {
    return request({
        url: '/behindCage/getDoublingRwdInfo',
        method: 'get',
    })
}


// 根据查询所有未被选中的在线流程卡
export function getRwdInfo(params) {
    return request({
        url: '/behindCage/getRwdInfo',
        method: 'get',
        params
    })
}

// 操作已配对的流程卡
export function operateRwdLine(data) {
    return request({
        url: '/behindCage/operateRwdLine',
        method: 'post',
        data
    })
}

// 获取中空线的玻璃
export function getZkOnLineGlass() {
    return request({
        url: '/behindCage/getZkOnLineGlass',
        method: 'get',
    })
}
// 获取中空在线玻璃数
export function getRwdGlass(data) {
    return request({
        url: '/behindCage/getRwdGlass',
        method: 'post',
        data
    })
}